#ifndef MYSERVER_H
#define MYSERVER_H

#include<QTcpServer>
#include<QList>
#include"INCLUDE/user_nickName.h"
#include "THREAD/mythread.h"
class MainWindow;
class MyServer : public QTcpServer
{
    Q_OBJECT
public:
    MyServer(QObject *parent = Q_NULLPTR);
    ~MyServer();
protected:
    void incomingConnection(qintptr sockDesc) override;
    //sockDescList用于记录每个链接进来的客户端
//    QList<qintptr>sockDescList;
    QList<STC_USER>userList;//用于记录每个连入客户端的信息
signals:
    void dataReady(char *str,int flag);


signals:
    void dataReady(char*);


};

#endif // MYSERVER_H
